﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using NBFDAL.SqlMapDAL;
using System.Data;

namespace NBFBLL
{
    public class FundYieldBLL
    {
        protected FundYieldDAL fy_dal = new FundYieldDAL();

        public DataSet GetNowFundList(string zdid)
        {
            return fy_dal.GetNowFundList(zdid);
        }

        public DataSet GetHistoryFundList(string zdid, DateTime startDay, DateTime endDay)
        {
            return fy_dal.GetHistoryFundList(zdid, startDay, endDay);
        }

        public int jisuanOnejjForShenzhen(string openid)
        {
            fy_dal.jisuanOnejjForShenzhen(openid);
            return 1;
        }

        public DataSet getRealShouyilv(string zdid)
        {
            return fy_dal.getRealShouyilv(zdid);
        }

        public double GetZhuHeSYL(string zdid)
        {
            double syl = 0;
            fy_dal.GetZhuHeSYL(zdid, ref syl);
            return syl;
        }

        public double jisuanZhuHeForShenzhen(string zdid)
        {
            double syl = 0;
            fy_dal.jisuanZhuHeForShenzhen(zdid,ref syl);
            return syl;
        }
    }
}
